﻿using CommonFunction;
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Robot_Roulettist_V9
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (!ValidTrialPeriod()) return;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Common.InitGlobalParameters(Application.StartupPath);

            Application.Run(new Roulettist());
        }

        private static bool ValidTrialPeriod()
        {
            return (DateTime.Now.Date.Subtract(Common.PUBLISH_DATE).TotalDays < Common.TRIAL_TERM);
        }
    }
}
